﻿#region Usings
using Lib.Utils.StrUtils.FromStringConverter;
#endregion

namespace BK.Financisto
{
    public class FinancistoDecimalFromStringConverter : DecimalFromStringConverter
    {
        #region Instance Methods
        protected override decimal DoConvert(string value)
        {
            return base.DoConvert(PrepareStrValue(value));
        }

        private string PrepareStrValue(string value)
        {
            return value.Replace(",", "").Replace(" ", "");
        }
        #endregion
    }
}